package app.msy.cn.takephoto.camera;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import app.msy.cn.takephoto.R;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class CameraActivity extends AppCompatActivity {

    @BindView(R.id.camera_surface_view)
    CameraSurfaceView cameraSurfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_camera);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.btn_take_photo)
    public void onClick() {
        cameraSurfaceView.takePicture();
    }
}
